#!/usr/bin/env python
import shard

import unittest


class ShardUnittest(unittest.TestCase):

  def testInit(self):
    s = shard.Shard("foo", 0, 1, 2)
    self.assertEquals("foo", s.fname)
    self.assertEquals(0, s.shard_idx)
    self.assertEquals(1, s.start_row_idx)
    self.assertEquals(2, s.end_row_idx)

if __name__ == "__main__":
  unittest.main()
